listbase: Select via action
authorBenjamin Otte <otte@redhat.com>
Wed, 29 Mar 2023 04:01:26 +0000 (06:01 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 29 Mar 2023 08:42:49 +0000 (10:42 +0200)
commitcbef6a9258eed83d697acc0867ca05bea467d8df
tree4da473cbc68b7c64b54a0fb809d18201c7295106
parentc5a53f235a2ed1b0acd0a8c29153e62377262d04
listbase: Select via action

Instead of directly calling select_item(), trigger the select-item
action of the focused child.

We do this convoluted calling into the widget because that way
GtkListItem::selectable gets respected, which is what one would expect.

Plus, this code is usually triggered via keybindings, and this way the
ListBase keybindings work identical to the ListItem keybindings.
gtk/gtklistbase.c